<?php
include_once("controller/AgendaDetailController.php");
$controller = new AgendaDetailController();
if(isset($_GET['method'])){
	$method = strtolower($_GET['method']);

	switch ($method){
		case 'getagendalist':
			$controller->getAgendaList();
			break;
		case 'getagendalistbyid':
			$agenda_id = intval($_GET['id']);
			$controller->getAgendaListById($agenda_id);
			break;
		case 'getagendadetailbyagendaid':
			$place_id = intval($_GET['id']);
			$controller->getAgendaDetailByAgendaId($place_id);
			break;
		default:
			break;
	}
}
else{
	echo "Please set method for agenda";
}
?>